package cn.cms.constants;

import com.google.common.collect.Sets;

import java.util.Set;

/**
 * 重要:每个菜单或者访问的页面路径必须加入PATH里,否则无法对权限控制.
 */
public class Menu {

    public static String INDEX = "/index";
    public static String INDEX_HTML = "/index.html";

    public static String USER_LOGIN = "/sysuser/login";
    public static String USER_LOGOUT = "/sysuser/logout";
    public static String MANGO_STAT = "/mango-stat";

    public static String USER_LIST = "/sysuser/list";

    //信息流-内容管理
    public static String INFOS_CONTENT_MANAGER = "/sources/list";
    //信息流-站点源管理
    public static String INFOS_SITE_MANAGER = "/siteSources/list";

    public static Set<String> PATH  = Sets.newHashSet();

    static {

        PATH.add(INDEX);
        PATH.add(USER_LOGIN);
        PATH.add(USER_LIST);
        PATH.add(INFOS_CONTENT_MANAGER);
        PATH.add(INFOS_SITE_MANAGER);
    }
}
